# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(MyApplication3)

set(OHOS_PLATFORM OHOS)
set(BUILD_SHARED_LIBS true)
set(OHOS_STL c++_static)
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_CXX_STANDARD 17)
project(classification)

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/common
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/api
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/api/callback
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/api/metrics
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/c_api
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/dataset
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/dataset/lite_cv
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/ir/dtype
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/mindapi
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/mindapi/base
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/registry
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/schema
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/third_party/flatbuffers
                    ${NATIVERENDER_ROOT_PATH}/minddata-lite/include/third_party/flatbuffers/pch
                    ${NATIVERENDER_ROOT_PATH}/include)

add_library(entry SHARED hello.cpp Detection.cpp)

target_link_libraries(entry PUBLIC
    ${NATIVERENDER_ROOT_PATH}/../../../libs/arm64-v8a/libminddata-lite.so
    hilog_ndk.z.so libace_napi.z.so libc++.a libmindspore-lite.huawei.so)